package com.edfu.core.commons.service.api;

import java.util.List;

import org.springframework.security.access.prepost.PreAuthorize;

import com.edfu.core.commons.beans.EduObjectType;
import com.edfu.core.testmgt.vo.Resource;

public interface IResourceMgtService {
	
	@PreAuthorize("isAnonymous()")
    public void uploadResource(Resource resource);

    @PreAuthorize("isAnonymous()")
    public Resource getResource(String uuid);
    
    @PreAuthorize("isAnonymous()")
    public void mapResource(long resourceId, long objectId, EduObjectType objectType);    
    
    @PreAuthorize("isAnonymous()")
    public List<Resource> getResources(long objectId, EduObjectType objectType);
    
    @PreAuthorize("isAnonymous()")
	public void deleteResource(String uuid);    

}
